package com.deimos.sps;

import javax.xml.stream.XMLStreamException;

import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.impl.llom.util.AXIOMUtil;
import org.vast.ows.OWSException;
import org.vast.ows.swe.DescribeSensorRequest;
import com.deimos.dataBase.Sensor;

public class DescribeSensor {
    DescribeSensorRequest request = null;
    //DescribeSensorResponse response = null;
    
    public DescribeSensor(DescribeSensorRequest request) {
	this.request = request;
    }

    public OMElement buildResponse() throws OWSException, XMLStreamException {
	return AXIOMUtil.stringToOM(Sensor.readDescription(request.getProcedureID()));
    }
}
